Optimal. Leaf size=146 \[ \frac{2 c^2 (A-B) \cos (e+f x) \log (\sin (e+f x)+1)}{f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}}+\frac{c (A-B) \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a \sin (e+f x)+a}}-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a \sin (e+f x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.365348, antiderivative size = 146, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {2973, 2740, 2737, 2667, 31} \[ \frac{2 c^2 (A-B) \cos (e+f x) \log (\sin (e+f x)+1)}{f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}}+\frac{c (A-B) \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a \sin (e+f x)+a}}-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a \sin (e+f x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2973
Rule 2740
Rule 2737
Rule 2667
Rule 31
Rubi steps
\begin{align*} \int \frac{(A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2}}{\sqrt{a+a \sin (e+f x)}} \, dx &=-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+(A-B) \int \frac{(c-c \sin (e+f x))^{3/2}}{\sqrt{a+a \sin (e+f x)}} \, dx\\ &=\frac{(A-B) c \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+(2 (A-B) c) \int \frac{\sqrt{c-c \sin (e+f x)}}{\sqrt{a+a \sin (e+f x)}} \, dx\\ &=\frac{(A-B) c \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+\frac{\left (2 a (A-B) c^2 \cos (e+f x)\right ) \int \frac{\cos (e+f x)}{a+a \sin (e+f x)} \, dx}{\sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=\frac{(A-B) c \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+\frac{\left (2 (A-B) c^2 \cos (e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{a+x} \, dx,x,a \sin (e+f x)\right )}{f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=\frac{2 (A-B) c^2 \cos (e+f x) \log (1+\sin (e+f x))}{f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}+\frac{(A-B) c \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}-\frac{B \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.673589, size = 146, normalized size = 1. \[ -\frac{c (\sin (e+f x)-1) \sqrt{c-c \sin (e+f x)} \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) \left (B \cos (2 (e+f x))-4 \left ((A-2 B) \sin (e+f x)+4 (B-A) \log \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )\right )\right )}{4 f \sqrt{a (\sin (e+f x)+1)} \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.345, size = 504, normalized size = 3.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \sin \left (f x + e\right ) + A\right )}{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}}{\sqrt{a \sin \left (f x + e\right ) + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B c \cos \left (f x + e\right )^{2} -{\left (A - B\right )} c \sin \left (f x + e\right ) +{\left (A - B\right )} c\right )} \sqrt{-c \sin \left (f x + e\right ) + c}}{\sqrt{a \sin \left (f x + e\right ) + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \sin \left (f x + e\right ) + A\right )}{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}}{\sqrt{a \sin \left (f x + e\right ) + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]